// 编写实体
// 引入装饰器
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn,Generated } from 'typeorm';
// 定义实体表
@Entity()
export class Girl{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:255})
    name: string;
@Column({type:"int"})
age:number;
@Column({type:"varchar"})
skill:string;
// 自动生成时间
@CreateDateColumn({type:"timestamp"})
entryTime:Date;
    // 自动生成一个自增的不重复的id
// @Generated("uuid")
// uuid:string;
}